package jjj;


import java.util.Scanner;
import java.util.Arrays;
public class Cheng24{
  public static void main(String args[]){
    Scanner in = new Scanner(System.in);
    int i,j;
    int a,b;
    while(in.hasNext()){
      int n = in.nextInt();
      String s[][] = new String[n][];
      int t[][] = new int[9][9];
      for(i=0;i<n;i++){
        s[i] = new String[i+1];
        for(j=0;j<n;j++){
          if(i>=j){
            a=i+1;
            b=j+1;
            t[i][j] = a*b;
            s[i][j] = a+"*"+b+"="+t[i][j];
            if(i>j) {
            	System.out.printf("%-7s",s[i][j]);
            }
            else {
            	System.out.println(s[i][j]);
            }
          }
        }
        System.out.println();
      }
      System.out.println(Arrays.deepToString(s));
    }
    in.close();
  }
}